package com.javabasic.gui.jframe;

import javax.swing.*;
import java.awt.*;

/**
 * @author mir.xiong
 * @version 1.0
 * @description
 * @see
 * @since Created by work on 2022/9/28 23:45
 */
public class LoginJFrame extends JFrame {

    public LoginJFrame() throws HeadlessException {
        this.setTitle("觅点登陆");
//        ImageIcon icon = new ImageIcon("images\\jsb.png");
//        this.setIconImage(icon.getImage());
        this.setSize(1200, 900);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }

    public JPanel initJPanel() {
        JPanel jPanel = new JPanel();

        JLabel userNameLabel = new JLabel("用户名", JLabel.CENTER);
        JLabel pwdLabel = new JLabel("密码", JLabel.CENTER);

        JTextField jTextField = new JTextField();
        JPasswordField jPasswordField = new JPasswordField();




        JButton loginButton = new JButton("登陆");
        JButton registerButton = new JButton("注册");


        return jPanel;
    }
}
